{template 'header'}
<script>

</script>
<div>
<div>
    <a href="{php echo $this->createWebUrl('Addactivity')}" class="btn btn-success">添加活动</a></div>
<div>
    <div>
        <span>编号</span>
        <span>活动名称</span>
        <span>报名开始时间</span>
        <span>截止时间</span>
        <span>参与人数</span>
        <span>二维码</span>
        <span>中奖纪录</span>
        <span>操作</span>
    </div>

    <?php
    foreach($activitys as $activity) {
    ?>
    <div>
        <span>{$activity['id']}</span>
        <span>{$activity['activity_name']}</span>
        <span>报名开始时间</span>
        <span>截止时间</span>
        <span>参与人数</span>
        <span><img src="{$activity['qrcode']}" /></span>
        <span>中奖纪录</span>

        <span></span>
    </div>
    <?php }?>
</div>
</div>
</body>
</html>